import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
    int[] arr = {1,3,5,7,9};
        System.out.println("请输入目标数");
        Scanner scan = new Scanner(System.in);
        int input = scan.nextInt();
        for (int i = 0; i < arr.length; i++) {
            for (int j = i + 1; j < arr.length; j++) {
                if(arr[i] + arr[j] == input){
                    System.out.printf("%d %d\n",i,j);
                }

            }

        }
    }
}